package com.huatai.bi.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.huatai.bi.dto.bigScreen.BigScreenTypeDTO;
import com.huatai.bi.entity.BigScreenTypeEntity;
import com.huatai.bi.vo.bigScreenVO.ScreenTypeTreeVO;
import com.huatai.bi.vo.bigScreenVO.ScreenTypeVO;

import java.util.List;

/**
* @author hecai
* @description 针对表【big_screen_type(大屏分类)】的数据库操作Service
* @createDate 2024-06-18 14:54:10
*/
public interface BigScreenTypeService extends IService<BigScreenTypeEntity> {

    /**
     * 保存大屏分类
     * @param entity
     * @return
     */
    Boolean saveBigScreenType(BigScreenTypeDTO entity);

    /**
     * 更新大屏分类
     * @param entity
     * @return
     */
    Boolean updateBigScreenType(BigScreenTypeDTO entity);

    /**
     * 删除大屏分类
     * @param id
     * @return
     */
    Boolean deleteBigScreenType(Long id);

    /**
     * 根据类型获取分类
     * @param type
     * @return
     */
    List<ScreenTypeVO> getListByTYpe(String type);

    /**
     * 获取分类树
     * @param type
     * @return
     */
    List<ScreenTypeTreeVO> getListByTypeTree(String type);

    List<ScreenTypeTreeVO> getDirectTree(Long pid, List<BigScreenTypeEntity> list);

    /**
     * 根据编码获取分类
     * @param code
     * @return
     */
    BigScreenTypeEntity getInfoByCode(String code);
}
